package com.mini.cn.goods.io.netty.ws;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * Created with IntelliJ IDEA.

 * User: fly
 * Date: 2020-05-27
 * Time: 9:36 上午
 */

public final class LCSpliter extends LengthFieldBasedFrameDecoder {

    public LCSpliter() {
        super(WsConfig.MAXSIZE, 0, 4);
    }

    @Override
    protected Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
        Object decode = super.decode(ctx, in);
        return decode;
    }
}
